package com.config;

import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author chengyadong
 * @date 2022/11/17 9:00
 * @description
 */
//使TypeExcludeFilterText生效
public class ApplicationContextInitilizerController implements ApplicationContextInitializer {
	@Override
	public void initialize(ConfigurableApplicationContext applicationContext) {
		ConfigurableListableBeanFactory t = applicationContext.getBeanFactory();
		t.registerSingleton("typeExcludeFilterText",new TypeExcludeFilterText());
	}
}
